#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

outfile = open("D:/download.list", "w")

for i in range(1, 929):
    id = str(i).zfill(4)
    outfile.write("wget -c ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed18n" + id + ".xml.gz\n")
    outfile.write("wget -c ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed18n" + id + ".xml.gz.md5\n")
    outfile.write("wget -c ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed18n" + id + "_stats.html\n")
    outfile.flush()

outfile.close()
